import { mock } from "mockjs";

export default mock({
  code: () => Math.random() >= 0.05 ? 0 : 1,
  message: '请求成功',
  "data": [
    {
      "id": "001",
      "name": "家用电器",
      "keywords": [
        "节能补贴",
        "4K电视",
        "空气净化器",
        "IH电饭煲",
        "滚筒洗衣机",
        "电热水器"
      ],
      "imgUrl": "/img/floor/floor-1-1.png",
      "navList": [
        {
          "url": "#",
          "text": "热门"
        },
        {
          "url": "#",
          "text": "大家电"
        },
        {
          "url": "#",
          "text": "生活电器"
        },
        {
          "url": "#",
          "text": "厨房电器"
        },
        {
          "url": "#",
          "text": "应季电器"
        },
        {
          "url": "#",
          "text": "空气/净水"
        },
        {
          "url": "#",
          "text": "高端电器"
        }
      ],
      "carouselList": [
        {
          "id": "0011",
          "imgUrl": "/img/floor/floor-1-b01.png"
        },
        {
          "id": "0012",
          "imgUrl": "/img/floor/floor-1-b02.png"
        },
        {
          "id": "0013",
          "imgUrl": "/img/floor/floor-1-b03.png"
        }
      ],
      "recommendList": [
        "/img/floor/floor-1-2.png",
        "/img/floor/floor-1-3.png",
        "/img/floor/floor-1-5.png",
        "/img/floor/floor-1-6.png"
      ],
      "bigImg": "/img/floor/floor-1-4.png"
    },
    {
      "id": "002",
      "name": "手机通讯",
      "keywords": [
        "节能补贴2",
        "4K电视2",
        "空气净化器2",
        "IH电饭煲2",
        "滚筒洗衣机2",
        "电热水器2"
      ],
      "imgUrl": "/img/floor/floor-1-1.png",
      "navList": [
        {
          "url": "#",
          "text": "热门2"
        },
        {
          "url": "#",
          "text": "大家电2"
        },
        {
          "url": "#",
          "text": "生活电器2"
        },
        {
          "url": "#",
          "text": "厨房电器2"
        },
        {
          "url": "#",
          "text": "应季电器2"
        },
        {
          "url": "#",
          "text": "空气/净水2"
        },
        {
          "url": "#",
          "text": "高端电器2"
        }
      ],
      "carouselList": [
        {
          "id": "0011",
          "imgUrl": "/img/floor/floor-1-b01.png"
        },
        {
          "id": "0012",
          "imgUrl": "/img/floor/floor-1-b02.png"
        },
        {
          "id": "0013",
          "imgUrl": "/img/floor/floor-1-b03.png"
        }
      ],
      "recommendList": [
        "/img/floor/floor-1-2.png",
        "/img/floor/floor-1-3.png",
        "/img/floor/floor-1-5.png",
        "/img/floor/floor-1-6.png"
      ],
      "bigImg": "/img/floor/floor-1-4.png"
    }
  ]
})